import { authLogin } from '@/apis/authAPI'

export default () => {
  async function login(loginModel: LoginModel) {
    const { data } = await authLogin(loginModel)
    localStorage.setItem('token', data.token)
  }

  async function register() {
    // await logoutAPI()
  }
  return { login, register }
}
